package com.gzu.shop.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(value ="物品相似度")
@Data
public class ThingSimilarity {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long thing1Id;

    private Long thing2Id;

    private Double similarity;


    public ThingSimilarity(Long thing1Id, Long thing2Id, Double similarity) {
        this.thing1Id = thing1Id;
        this.thing2Id = thing2Id;
        this.similarity = similarity;
    }
    public Long getId() {
        return id;
    }
    public Long getThing1Id() {
        return thing1Id;
    }
    public Long getThing2Id() {
        return thing2Id;
    }
    public Double getSimilarity() {
        return similarity;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public void setThing1Id(Long thing1Id) {
        this.thing1Id = thing1Id;
    }
    public void setThing2Id(Long thing2Id) {
        this.thing2Id = thing2Id;
    }
    public void setSimilarity(Double similarity) {
        this.similarity = similarity;
    }
    @Override
    public String toString() {
        return "ThingSimilarity{" +
                "id=" + id +
                ", thing1Id=" + thing1Id +
                ", thing2Id=" + thing2Id +
                ", similarity=" + similarity +
                '}';
    }

}
